package com.bw.service.order;
import com.bw.entity.PageResult;
import com.bw.pojo.order.Order;
import com.bw.pojo.order.Orders;

import java.util.*;

/**
 * order业务逻辑层
 */
public interface OrderService {


    public List<Order> findAll();


    public List<Order> findAllList(String []ids);

    public PageResult<Order> findPage(int page, int size);


    public List<Order> findList(Map<String,Object> searchMap);


    public PageResult<Order> findPage(Map<String,Object> searchMap,int page, int size);


    public Order findById(String id);

    //public void add(Order order);
    public Map<String,Object> add(Order order);

    public void update(Order order);


    public void delete(String id);

    public Orders findOrdersById(String id);

    /**
     * 批量发货
     * @param orders
     * @return
     */
    public void batchSend(List<Order> orders);


    /*
     * 订单超时
     * */
    public void orderTimeOutLogic();

}
